<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
request.setCharacterEncoding("UTF-8");
String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en" style=" text-align:center">
<head>
<meta charset="utf-8" />
<base href="<%=basePath%>">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" type="text/css"	href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/icon.css">
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="<%=basePath %>admin/assets/css/backOffice/myeasyui_base.css" type="text/css"></link>
<link rel="stylesheet" href="<%=basePath %>admin/assets/css/backOffice/qualityControlEditStyle.css" type="text/css"></link>
<style type="text/css">

#tinybox{position:absolute; display:none; padding:10px; background:#ffffff url(image/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000;}
#tinymask{position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000000; z-index:1500;}
#tinycontent{background:#ffffff; font-size:1.1em;}


</style>
<body style=" margin:0 auto;">
<input type="hidden"  id="form_field_Hidden" value="${qualityControl.field }" />
<input type="hidden"  id="form_scope_Hidden" value="${qualityControl.scope }" />
<input type="hidden"  id="form_count_Hidden" value="${qualityControl.count }" />
<input type="hidden"  id="form_nature_Hidden" value="${qualityControl.nature }" />
<input type="hidden"  id="form_beginDate_Hidden" value="${qualityControl.beginDate }" />
<input type="hidden"  id="form_feedBackDate_Hidden" value="${qualityControl.feedBackDate }" />
<input type="hidden"  id="form_endDate_Hidden" value="${qualityControl.endDate }" />
<input type="hidden"  id="form_ptclsj_Hidden" value="${qualityControl.ptclsj }" />
<input type="hidden"  id="form_gbjgxx_Hidden" value="${qualityControl.gbjgxx }" />
<input type="hidden"  id="form_ptxz_Hidden" value="${qualityControl.ptxz }" />
    <div class="topTitle">
    	质量控制——修改<span>（编号：${qualityControl.qcId }）</span>
    </div>
    
    <!-- Begin 质量控制表单 -->
	<div id="qualityControl_form_dialog"   style="padding:10px" >
		<form id="qualityControl_edit_form" method="post" enctype="multipart/form-data">
	    	<input type="hidden" id="form_qcId" name="qualityControl.qcId"  value = ${qualityControl.qcId }    />
	    	<table cellpadding="6"  style="font-size: 13">
				<tr>
					<td>
						 发起实验室：
					</td>
					<td colspan="2">
						${qualityControl.sponsor.compName }
					</td>
					<td>
						进行状态：
					</td>
					<td colspan="2">
						${qualityControl.statusName }<c:if test="${qualityControl.openFlag == '0'}">（关闭）</c:if>
					</td>
				</tr>
				
				<tr>
					<td>
						 项目名称：
					</td>
					<td colspan="2">
						<input class="easyui-textbox"  type="text" name="qualityControl.projectName" value="${qualityControl.projectName }"/>
					</td>
					<td>
						领域：
					</td>
					<td colspan="2">
						<input id="field"  name="qualityControl.field"   class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=qc_field&comBoBox.isSelect=true',panelHeight:'auto'" />
					</td>
				</tr>
				
				<tr>
					<td>
						 参加范围：
					</td>
					<td colspan="2">
						<input id="scope"  name="qualityControl.scope"  class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=qc_scope&comBoBox.isSelect=true',panelHeight:'auto'" />
					</td>
					<td>
						活动性质：
					</td>
					<td colspan="2">
						<input id="nature"  name="qualityControl.nature"  class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=qc_nature&comBoBox.isSelect=true',panelHeight:'auto'" />
					</td>
				</tr>
				
				<tr>
					<td>
						检测标准：
					</td>
					<td colspan="2">
						<input class="easyui-textbox"   name="qualityControl.standard"  type="text"  value="${qualityControl.standard }"/>
					</td>
					<td>
						参加人数：
					</td>
					<td colspan="2">
						<input id="count"  name="qualityControl.count"   class="easyui-combobox" data-options="valueField:'key',textField:'value',url:'admin/system_dictionaryJson.action?comBoBox.name=qc_count&comBoBox.isSelect=true',panelHeight:'auto'" />
					</td>
				</tr>
				
				<tr>
					<td>
						开始时间：
					</td>
					<td colspan="2">
						<input id="beginDate"   name="qualityControl.beginDate"  class="easyui-datebox" data-options="formatter:myformatter,parser:myparser"></input>
					</td>
					<td>
						结束时间：
					</td>
					<td colspan="2">
						<input   id="endDate"  name="qualityControl.endDate"  class="easyui-datebox" data-options="formatter:myformatter,parser:myparser"></input>
					</td>
				</tr>
				
				<tr>
					<td>
						 反馈时间：
					</td>
					<td colspan="2">
						<input  id="feedBackDate"  name="qualityControl.feedBackDate"  class="easyui-datebox" data-options="formatter:myformatter,parser:myparser"></input>
					</td>
					<td>
						价格：
					</td>
					<td colspan="2">
						<input class="easyui-numberbox"  precision="2" max="999999999.99" size="8" maxlength="8"  id="price"  style="width: 128px;" name="qualityControl.price" value="${qualityControl.price }"   />元
					</td>
				</tr>
				
				<tr>
					<td>
						 公布机构信息：
					</td>
					<td>
						<input type="checkbox"  id="gbjgxx" name="gbjgxx" onclick="setCheckBoxValue(this,'1','0')"/>
					</td>
					<td>
						平台协助：
					</td>
					<td>
						<input type="checkbox"   id="ptxz"  name="ptxz"  onclick="setCheckBoxValue(this,'1','0')"/>
					</td>
					<td>
						平台处理：
					</td>
					<td>
						<input type="checkbox"    id="ptclsj"  name="ptclsj"  onclick="setCheckBoxValue(this,'1','0')"/>
					</td>
				</tr>
				<c:if test="${qualityControl.img1 != ''&& qualityControl.img1 !=null || qualityControl.img2 != ''&& qualityControl.img2 !=null || qualityControl.img3 != ''&& qualityControl.img3 !=null}">
				<tr id="picTr">
					<td>
						图片：
					</td>
					<c:if test="${qualityControl.img1 != ''&& qualityControl.img1 !=null}">
					<td align="center">
						<img id="img1" align="middle" height="100" width="100"   onclick="tanchupic(this.src)"  src=${qualityControl.img1 }   />
					</td>
					</c:if>
					<c:if test="${qualityControl.img2 != '' && qualityControl.img2 !=null}">
					<td colspan="2" align="center">
						<img id="img2" align="middle" height="100" width="100"   onclick="tanchupic(this.src)"  src=${qualityControl.img2 }   />
					</td>
					</c:if>
					<c:if test="${qualityControl.img3 != ''&& qualityControl.img3 !=null}">
					<td align="center">
						<img id="img3" align="middle" height="100" width="100"   onclick="tanchupic(this.src)"  src=${qualityControl.img3 }   />
					</td>
					</c:if>
				</tr>
				</c:if>
				
				<tr>
					<td>
						描述：
					</td>
					<td colspan="6">
						<textarea rows="4" style="width: 100%" id="description"  name="qualityControl.description">${qualityControl.description }</textarea>
						
					</td>
				</tr>
				<tr>
					<td>
						其他：
					</td>
					<td colspan="6">
						<textarea rows="4" style="width: 100%" id="other"  name="qualityControl.other">${qualityControl.other }</textarea>
						
					</td>
				</tr>
				
				<c:if test="${qualityControl.openFlag == '0'}">
					<tr>
						<td>
							关闭原因：
						</td>
						<td colspan="6">
							<textarea rows="4" style="width: 100%">${qualityControl.closeReason }</textarea>
							
						</td>
					</tr>
				</c:if>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" id="form_submit" onclick="submitEditDataForm()">提交</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="window.close()">关闭</a>
	    </div>
	</div>
	<!-- End 质量控制表单 -->
	
	<script type="text/javascript" src="<%=basePath %>admin/assets/js/BackOffice/mine-function.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/youbiao/news/js/tinybox.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/youbiao/qualityControl/js/js_qualityControl.js"></script>
	<script type="text/javascript">
		function tanchupic(src){
			var content = "<img width='auto' height='500' src='"+src+"' />";//弹出图片
		    TINY.box.show(content,0,0,0,0);
		   }
	</script>
	<script  defer="defer">
	window.onload = function() { 
// 	if($("#img1").Attr("height")&&$("#img2").Attr("height")&&$("#img3").Attr("height")){
// 			$("#picTr").css('display','none'); 
// 		}
		$("#field").combobox('setValue', $("#form_field_Hidden").val());
		$("#scope").combobox('setValue', $("#form_scope_Hidden").val());
		$("#nature").combobox('setValue', $("#form_nature_Hidden").val());
		$("#count").combobox('setValue', $("#form_count_Hidden").val());
		
		$("#beginDate").datebox('setValue', $("#form_beginDate_Hidden").val());
		$("#endDate").datebox('setValue', $("#form_endDate_Hidden").val());
		$("#feedBackDate").datebox('setValue', $("#form_feedBackDate_Hidden").val());
		
		statusCheck("gbjgxx", eval($("#form_gbjgxx_Hidden").val()));
		statusCheck("ptxz", eval($("#form_ptxz_Hidden").val()));
		statusCheck("ptclsj", eval($("#form_ptclsj_Hidden").val()));
		}
	</script>
	
</body>
</html>
